﻿<UserControl x:Class="TestRunner.Views.ToolbarDocumentsView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:windowsToolbar="clr-namespace:Windows.Toolbar.Controls;assembly=Windows.Toolbar"
    mc:Ignorable="d">

    <windowsToolbar:ToolbarGroup Footer="Document">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition />
                <RowDefinition />
                <RowDefinition />
            </Grid.RowDefinitions>

            <Grid.ColumnDefinitions>
                <ColumnDefinition />
                <ColumnDefinition />
            </Grid.ColumnDefinitions>

            <windowsToolbar:ToolbarButton Grid.RowSpan="3" Padding="4,0,4,0" HorizontalAlignment="Center" Click="ToolbarButton_Click">
                <StackPanel>
                    <Image Source="/TestRunner;component/Resources/NewDocument.png" />
                    <TextBlock Foreground="Black" Text="New" HorizontalAlignment="Center" />
                </StackPanel>
            </windowsToolbar:ToolbarButton>

            <windowsToolbar:ToolbarButton Grid.Column="1" Height="22" HorizontalAlignment="Left" Click="ToolbarButton_Click" VerticalAlignment="Top">
                <StackPanel Orientation="Horizontal">
                    <Image Source="/TestRunner;component/Resources/OpenFolder.png" />
                    <TextBlock Foreground="Black" Text="Open" Margin="2,0,0,0" />
                </StackPanel>
            </windowsToolbar:ToolbarButton>

            <windowsToolbar:ToolbarButton Grid.Row="1" Grid.Column="1" Command="{Binding SaveDocumentCommand}" Height="22" HorizontalAlignment="Left" Click="ToolbarButton_Click">
                <StackPanel Orientation="Horizontal">
                    <Image Source="/TestRunner;component/Resources/Save.png" />
                    <TextBlock Foreground="Black" Text="Save" Margin="2,0,0,0" />
                </StackPanel>
            </windowsToolbar:ToolbarButton>

            <windowsToolbar:ToolbarButton Grid.Row="2" Grid.Column="1" Height="22" HorizontalAlignment="Left" Click="ToolbarButton_Click">
                <StackPanel Orientation="Horizontal">
                    <Image Source="/TestRunner;component/Resources/Print.png" />
                    <TextBlock Foreground="Black" Text="Print" />
                </StackPanel>
            </windowsToolbar:ToolbarButton>
        </Grid>
    </windowsToolbar:ToolbarGroup>
</UserControl>
